#include <QApplication>
#include "CMainWindow.h"
#include "CSettings.h"
#include <QFont>

int main(int argc, char *argv[])
{
#if(QT_VERSION >= QT_VERSION_CHECK(5,6,0))
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif

    QApplication a(argc, argv);

    QFont font;
    font.setFamily("等线,Arial");
//    font.setPixelSize(14);
    a.setFont(font);

    CSettings::getInstance()->init();
    CMainWindow::getInstance()->show();

    return a.exec();
}
